import java.io.*;
import java.util.*;



/**
*This is the main class of the application
*/
public class MainEncapsulation 
{
	public static void main(String[] args) 
	{
		int teacherNumber=0;

		StudInfo studInfo = new StudInfo();

		Teacher teacher=new Teacher();
		teacher.printNames();
		try{		
			System.out.println("Enter the teacher number: ");
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		        teacherNumber=Integer.parseInt(br.readLine());
		}catch(IOException e){
			System.out.println("Exception in IO"+e.toString());
		}
		
		teacher.selectTeacher(teacherNumber);
   	}

}


